package com.lu.action;

import java.util.HashMap;
import java.util.Map;

import com.lu.entity.Phone;
import com.lu.service.PhoneService;
import com.lu.service.UserService;

public class PhoneDetailAction {

	UserService userService = new UserService();
	PhoneService phoneService = new PhoneService();
	
	private Long id;
	private Phone phone;

	public String execute() throws Exception{
		Map<String,Object> map = new HashMap<>();
		map.put("user_id", id==null?"":id.toString());
		phone = phoneService.getPhone(map);
		return "success";
	}


	public Long getId() {
		return id;
	}


	public void setId(Long id) {
		this.id = id;
	}


	public Phone getPhone() {
		return phone;
	}


	public void setPhone(Phone phone) {
		this.phone = phone;
	}

}
